package com.vhall.component.entity.record.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import com.vhall.component.plugin.common.annotation.CheckTimeInterval;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author kainan.li
 * @date 2021/5/14 上午11:10
 */
@Data
@CheckTimeInterval
public class CutMergeRecordReqVO implements Serializable {

    private static final long serialVersionUID = 2147173005303714997L;

    @ParamName("il_id")
    @NotNull(message = "il_id 不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "请输入正确的直播ID")
    private String ilId;

    @ParamName("start_time")
    @NotBlank(message = "start_time开始时间不能为空")
    @Pattern(message = "开始时间格式应该为yyyy-MM-dd HH:mm:ss", regexp = "^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\\s+([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$")
    private String startTime;

    @ParamName("end_time")
    @NotBlank(message = "end_time 结束时间不能为空")
    @Pattern(message = "结束时间格式应该为yyyy-MM-dd HH:mm:ss", regexp = "^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\\s+([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$")
    private String endTime;

    private String source;

    private String accountId;

}
